package com.ssy.lingxi.pay.service;

import com.ssy.lingxi.pay.api.model.vo.request.ccb.B2bRefundQueryVO;
import com.ssy.lingxi.pay.api.model.vo.request.ccb.B2bRefundVO;

/**
 * 商户退款相关接口
 */
public interface IRefundService {

    /**
     * B2B商户退款
     * @param refundVO
     * @return 成功返回true, 失败直接抛异常
     */
    Boolean refund(B2bRefundVO refundVO);

    /**
     * 商户退款流水查询
     * @param refundVO
     * @return 订单状态，枚举类型: CcbB2bPayRefundEnum
     */
    String refundQuery(B2bRefundQueryVO refundVO);
}
